package org.dromara.system.service;

import org.dromara.system.domain.WbDistricts;
import org.dromara.system.domain.vo.WbDistrictsVo;
import org.dromara.system.domain.bo.WbDistrictsBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 县区Service接口
 *
 * @author Lion Li
 * @date 2024-05-28
 */
public interface IWbDistrictsService {

    /**
     * 查询县区
     */
    WbDistrictsVo queryById(Long districtId);

    /**
     * 查询县区列表
     */
    TableDataInfo<WbDistrictsVo> queryPageList(WbDistrictsBo bo, PageQuery pageQuery);

    /**
     * 查询县区列表
     */
    List<WbDistrictsVo> queryList(WbDistrictsBo bo);

    /**
     * 新增县区
     */
    Boolean insertByBo(WbDistrictsBo bo);

    /**
     * 修改县区
     */
    Boolean updateByBo(WbDistrictsBo bo);

    /**
     * 校验并批量删除县区信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
